home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d27
/
nuke2.arc
/
NUKE.DOC
< prev
next >
Wrap
Text File
|
1990-08-23
|
4KB
|
66 lines
NUKE v1.1
Copyright (c) 1990 David Lipper. All rights reserved.
I got tired of waiting for slow programs taking forever to erase
subdirectory trees with tons of files in them, so I wrote my own solution.
This program takes advantage of the DOS "del *.*" command, since it is the
fastest way that I know to delete a lot of files. Since the "del *.*" command
prompts the user for conformation, I have implemented an input file called
"yesman.fil" full of "y" to answer the conformation; to make the whole thing
neat and of minimal inconvenience, I have included a batchfile to get input
from "yesman.fil" and to direct output to the null device. The program takes
one commandline parameter (as does the batchfile), that being the full path
(<drive>:\<path>) to be deleted. If you get "file not found" messages, that
just means that some (or all) of the subdirectories in the tree are already
empty, and does not mean an error occurred. If you use this program (which
is not freeware, shareware or crippleware, but survivalware (tm)), please
make a contribution to Greenpeace (or other environmentalist group). Thanks.
Note: be sure to add your paths to NUKEIT.BAT if you want to use it from other
than the directory that contains NUKE.EXE, SAFENUKE.EXE and YESMAN.FIL. NUKE
assumes you have command.com in c:\. Please do not break up this archive.
NUKE with no commandline gives a brief help screen. The Turbo Pascal 5.5 source
code for NUKE is available for $5 from the address below:
David Lipper
41 Greenridge Ave.
White Plains, N.Y. 10605
------------------------
NUKE can delete up to 64 directories in one shot (but I could increase
that if there was a demand for it). Be careful using NUKE, since if you don't
use the SAFENUKE program, there is no opportunity to change your mind once the
program is invoked (how fast can you hit Ctrl-Break ?). If NUKE is invoked
from a subdirectory in the delete path, it will leave you in the root
directory after it is done. The latest version will be available on (and
you can leave me e-mail on):
The Brentwood BBS (914)835-7898 1200/2400 baud (38,400 HST w/subscription)
Over the Edge BBS (914)747-4635 1200/2400 baud
Comments / suggestions are welcome. This program is offerred as-is; in no
event shall the author be held responsible for loss or damage resulting from
the use / misuse of this program. There are no warrantees, expressed or
implied. If you nuke your data, it's your fault.
NUKE
Revision history:
1.00 - initial release
1.01 - changed incorrect filename (killdir) to NUKE in batchfile
1.10 - changed .EXE file to use direct screen writes so messages can be
seen even when output is redirected to NUL. Also added SAFFENUKE
program to give the user a chance to change their mind. SAFENUKE
wants a "yes" to proceed; "y" will not do. If you do not want to
see any messages (except the unavoidable "file not found" when you
delete an empty subdir - I can fix this, if it really bothers anyone)
get NUKE v2.0A.
2.0/2.0A - Rewrote alot of code, v2 is slightly smaller & faster (less
convoluted) - I realized that there were major quirks/bugs in v1.1;
sorry, I think they have all been fixed. v2.0 will write msgs to the
screen even when output is redirected; v2.0A will not write to the
screen when output is redirected.